package com.lankystar.logistucs.spring.entity;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 一级订单：订单状态 n:n
 * @author SYX
 *
 */
@Entity
@Table(name="oneOrderAndoneStatus")
public class OneOrderAndOneStatus {

	private int id ;
	private OneOrder oneOrder;
	private OneStatus oneStatus;
	private long createTime;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@ManyToOne
	@JoinColumn(name="oneOrder_Id")
	public OneOrder getOneOrder() {
		return oneOrder;
	}
	public void setOneOrder(OneOrder oneOrder) {
		this.oneOrder = oneOrder;
	}
	@ManyToOne
	@JoinColumn(name="oneStatus_Id")
	public OneStatus getOneStatus() {
		return oneStatus;
	}
	public void setOneStatus(OneStatus oneStatus) {
		this.oneStatus = oneStatus;
	}
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	
	
}
